﻿@using EquipmentAlarmSystem.Service.Models.Enum
@model PermissionManagementModel

@{
    ViewData["Title"] = "添加分组";
}
<partial name="_SystemConfiguration" />

<style>
    table {
        border-collapse: collapse; /* 合并表格边框为一个单一的边框 */
        margin: 0 auto;
    }

    table, th, td {
        border: 1px solid black; /* 设置表格、表头和表格单元格的边框为1像素宽的黑色实线 */
        text-align: center; /* 水平居中 */
    }

    tr {
        height: 35px;
    }
</style>

<table>
    @for (int i = 0; i < Model.Grouping.Count; i += 4)
    {
        <tr>
            <th width="250px">@Model.Grouping[i]</th>
            @if (i + 1 < Model.Grouping.Count)
            {
                <th width="250px">@Model.Grouping[i + 1]</th>
            }
            @if (i + 2 < Model.Grouping.Count)
            {
                <th width="250px">@Model.Grouping[i + 2]</th>
            }
            @if (i + 3 < Model.Grouping.Count)
            {
                <th width="250px">@Model.Grouping[i + 3]</th>
            }
        </tr>
    }
</table>

<hr>
<form action="/AuthorizationManagement/AddGroup" method="post">
    <input type="text" name="name" required>
    <input type="text" name="name" required>
    <input type="submit" value="提交">
</form>